<%--
  Created by IntelliJ IDEA.
  User: lichengming
  Date: 2017/8/3
  Time: 上午7:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/resources.jsp" %>
<html>
<head>
    <title>商品</title>
    <script>
        $(function () {
            $('#begin_time,#end_time').datetimepicker({
                language : 'zh-CN',
                format : 'yyyy-MM-dd HH:mm:ss',
            });
        })
    </script>
</head>
<body>
<div>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">查询条件</h3>
        </div>
        <div class="panel-body">
            <form class="form-inline ems_search_form">
                <div class="form-group">
                    <input type="text" class="form-control" name="phone" placeholder="手机号">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" id="begin_time" name="begin_time" placeholder="开始时间">
                    <label>-</label>
                    <input type="text" class="form-control" id="end_time"  name="end_time" placeholder="结束时间">
                </div>
                <div class="form-group">
                    <button type="button" class="btn btn-info btn-search">查询</button>
                    <button type="button" class="btn btn-default btn-reset">清空</button>
                </div>
            </form>
        </div>
    </div>
</div>

<div class="ems_table_content">
    <div class="panel panel-default">
        <div class="panel-heading">区县代理收益列表</div>
        <div id="table_tools">
        </div>
        <table id="merchantTable"
               data-url="/ems/distributionareaagent/pagination">
            <thead>
            <tr>
                <th data-field="state" data-checkbox="true"></th>
                <th data-field="nick_name" >所属用户昵称</th>
                <th data-field="phone">手机号</th>
                <th data-field="settleTime">结算时间</th>
                <th data-field="totalIncome">总金额</th>
            </tr>
            </thead>
        </table>
    </div>
    <script>

    </script>
</div>
<script>
    $(function () {

        $("#merchantTable").createTable();

    });

</script>
</body>
</html>
